#include "comm.hpp"
#include <unistd.h>

int main()
{
    int shmid = CreateShm();
    if(shmid < 0)
    {
        return 1;
    }
    char* shmaddr = (char*)shmat(shmid,nullptr,0);
    while(shmaddr)
    {
        cout << shmaddr;
        sleep(1);
    }
    return 0;
}